import req from "/@/api/req";
import { ResponseData } from "/@/api/req";
//后台管理系统账户操作相关
export enum Api {
  login = "login",
}
export interface LoginParams {
  username: string;
  password: string;
  rememberMe?: boolean;
}
export function login(data: LoginParams) {
  return req.post<ResponseData<any>>(
    {
      data,
      url: Api.login,
    },
    {
      withToken: false,
      useDefaultFailHandle: false,
      useGlobalLoading: false,
    }
  );
}
